﻿
function Brick() {
    this.body = document.createElement("div");
    this.body.className = "brick";

    this.body.style.left = Math.floor(Math.random * (800 - this.body.style.width)) + this.body.style.width;
    this.body.style.bottom = Math.floor(Math.random * (600 - this.body.style.height)) + this.body.style.height;

    this.size = { height: this.body.style.height, width: this.body.style.width };
}